﻿using System.Collections.Generic;
using BoldBrick.OneIntranet.HR.Properties;
using BoldBrick.SharePoint.CommonControls.DataObjects.Base;

namespace BoldBrick.OneIntranet.HR.DataObjects.ContentTypes.PositionsContentTypes
{
	/// <summary>
	/// Metadata class of "Position" content type
	/// </summary>
	public class PositionContentType : BaseContentType
	{
		protected override string GetContentTypeID()
		{
			return Settings.Default.ContentType_Position_ID;
		}

		protected override string GetNameResourceKey()
		{
			return "ContentType_Position_Name";
		}

		protected override string GetDescriptionResourceKey()
		{
			return "ContentType_Position_Description";
		}

		public override List<ListColumn> GetListColumns()
		{
			List<ListColumn> columns = new List<ListColumn>
			                           	{
			                           		SiteColumns.PositionNameColumn,
											SiteColumns.SeniorityLevelLookupColumn,
			                           		SiteColumns.JobDescriptionColumn,
			                           		SiteColumns.JobRequirementsColumn,
			                           		SiteColumns.EmploymentTypesLookupColumn,
			                           		SiteColumns.SalaryRangeFromColumn,
			                           		SiteColumns.SalaryRangeToColumn,
			                           		SiteColumns.VacanciesColumn,
											SiteColumns.VacanciesRemainingColumn,
											SiteColumns.HiredColumn,
			                           		SiteColumns.OpenFromColumn,
			                           		SiteColumns.ClosedOnColumn
			                           	};
			return columns;
		}
	}
}
